//
//  JTCalendarEnums.swift
//  XWHAOfflineFitting
//
//  Created by edy on 2024/4/23.
//

import Foundation

/// 日历日期类型
enum JTCalendarDateType: String {
    
    case day
    case week
    case month
    case year
    
    var name: String {
        switch self {
        case .day:
            return "日"
            
        case .week:
            return "周"
            
        case .month:
            return "月"
            
        case .year:
            return "年"
        }
    }
    
}

typealias JTCalendarSelectDateHandler = (Date) -> Void

typealias JTCalendarHandler = (Date, JTCalendarDateType) -> Void

typealias JTCalendarScrollDateHandler = JTCalendarHandler
